package com.djh.security.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

import java.util.List;
import java.util.Map;

/**
 * 验证配置
 *
 * @author siy
 * @date 2020/1/9 12:11
 * @since 1.0.1
 */
@Data
@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true, jsr250Enabled = true)
@ConfigurationProperties(SecurityProperties.PREFIX)
public class SecurityProperties {
    /**
     * 认证配置前缀{@value}
     */
    public final static String PREFIX = "djh.oauth2";
    /**
     * 客户端名称
     */
    private String client;

    private Map<String, List<String>> antMatchers;

}
